#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include<QDebug>
#include<QString>
#include<complex>
#include <QTextStream>
#include <windows.h>

#define pi 3.1415926



QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    void myfft();
    void mydft();
    void dit2(std::complex<double>* Data, int Log2N);
    void dft(std::complex<double>* Data, int Log2N);
    void forout(std::complex<double>* Data, int length);
    void forinv(std::complex<double>* Data, int length);
    void Rader(std::complex<double>* Data, int length);
    void forcin(QString str, std::complex<double>* Data);
private:
    Ui::MainWindow *ui;
};
#endif // MAINWINDOW_H
